package com.kevin.spider.convert;


import com.kevin.shop.domain.entity.ShopGoodSelection;
import com.kevin.spider.domain.bo.TaoBaoGood;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface SpiderGoodConverter {
    SpiderGoodConverter INSTANCE = Mappers.getMapper(SpiderGoodConverter.class);

   default void updateGoodSelection(ShopGoodSelection shopGoodSelection, TaoBaoGood good) {
       shopGoodSelection.setGoodLink(good.getGoodLink());
       shopGoodSelection.setGoodName(good.getGoodName());
       shopGoodSelection.setSalesNum(good.getSalesNum());
       shopGoodSelection.setSalesNumMonth(good.getSalesNumMonth());
   }
}
